package com.itheima01;

import java.time.DayOfWeek;
import java.time.LocalDateTime;

public class Homework7 {
    public static void main(String[] args) {
        LocalDateTime ld1 = LocalDateTime.now();

        int year = ld1.getYear();
        System.out.println(year + "年");

        int monthValue = ld1.getMonthValue();
        System.out.println(monthValue + "月");

        int dayOfMonth = ld1.getDayOfMonth();
        System.out.println(dayOfMonth + "日");

        int hour = ld1.getHour();
        System.out.println(hour + "时");

        int minute = ld1.getMinute();
        System.out.println(minute + "分");


        int second = ld1.getSecond();
        System.out.println(second + "秒");


    }
}
